# encoding=utf-8

import sys
from iHome import create_app, db
app = create_app('development')
reload(sys)
sys.setdefaultencoding('utf-8')

from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand

manager = Manager(app)
Migrate(app, db)
manager.add_command('db', MigrateCommand)


# redis





if __name__ == '__main__':
    print app.url_map
    manager.run()
